package com.wyh.controlller;

import com.wyh.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * user控制器
 *
 * @Author wangyaohan
 * @Date 2021/9/24 16:39
 * @ClassName UserController
 */
@RequestMapping("user")
@RestController
@CrossOrigin
public class UserController {

    @Autowired
    private UserDao userDao;

    @RequestMapping("find")
    public Object find() {
        return userDao.findAll();
    }
}
